# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-glom
_pkgname=glom
pkgver=24.11.0
pkgrel=1
pkgdesc='A declarative object transformer and formatter, for conglomerating nested data.'
arch=('any')
url='https://github.com/mahmoud/glom'
license=('BSD')
depends=('python' 'python-attrs' 'python-boltons' 'python-cachetools'
         'python-chardet' 'python-colorama' 'python-coverage' 'python-distlib'
         'python-exceptiongroup' 'python-face' 'python-filelock'
         'python-importlib-metadata' 'python-iniconfig' 'python-packaging'
         'python-platformdirs' 'python-pluggy' 'python-pyproject-api'
         'python-pytest' 'python-pyyaml' 'python-tomli' 'python-tox'
         'python-typing_extensions' 'python-zipp')
makedepends=('python-setuptools')
optdepends=('python-yaml: YAML support')
options=(!emptydirs)
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('12e0d1590b98b1a4a1dcd497f00ad29fe2fb45fc17159b9decab17a3cdc8e8013fbdf262c540a2cafd257202f0e65e8961c894674ec83672c59c77def0e00eb5')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

